<div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">明德软件阅读刊</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
            <i class="layui-icon layui-icon-spread-left"></i>
        </li>

        <li class="layui-nav-item layui-hide-xs"><a href="">教务端</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="">师生端</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="">共享端</a></li>
        <li class="layui-nav-item">
            <a href="javascript:;">Nav groups</a>
            <dl class="layui-nav-child">
                <dd><a href="">1111</a></dd>
                <dd><a href="">menu 22</a></dd>
                <dd><a href="">menu 33</a></dd>
            </dl>
        </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-md-inline-block">
            <a href="javascript:;">
                <img src="{{userInfo.avater}}" class="layui-nav-img" id="preview">
                帳號:{{userInfo.username}}

                <input type="file" id="avaterFile" style="display:none;">
                <!-- <img src="{{userInfo.avater}}" id="preview" style=""> -->
            </a>
            <dl class="layui-nav-child">
                <dd><a href="javascript:;" id="updAvatar">更换头像</a></dd>
                <dd><a href="">编辑信息</a></dd>
                <dd><a href='/logout' onclick="return confirm('确定离开吗 确定嘛')">退出登录</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
            <a href="javascript:;">
                <i class="layui-icon layui-icon-more-vertical"></i>
            </a>
        </li>
    </ul>
</div>